package dht;

import java.util.Vector;

import dht.entity.DataObject;
import dht.throwable.DhtException;

public interface IStorage {

	public DataObject read(String fileName) throws DhtException;

	public void write(DataObject dataObject, boolean overwrite)
			throws DhtException;

	public void remove(String fileName) throws DhtException;

	public Vector<String> getFileNamesByVnodeIds(Vector<Integer> vnodeIds)
			throws DhtException;
}
